import {makeAutoObservable, observable} from 'mobx'

interface UserInfo {
    username: string
    type: string,
    status: string,
    id: number
}

class UserStatus {
    userStatus: UserInfo = {
        username: '',
        type: '',
        status: '',
        id: 0
    }

    constructor() {
        makeAutoObservable(this)
    }

    setUserStatus = (status: UserInfo) => {
        this.userStatus = status
    }
}

const userStatus = new UserStatus()
export default userStatus
